package com.kgc.scd.service;

import com.kgc.scd.bean.Collect;
import com.kgc.scd.bean.CollectProducts;
import com.kgc.scd.bean.Foot;
import com.kgc.scd.bean.Foots;
import com.kgc.scd.util.PageSupport;

import java.util.List;

/**
 * Created On : 2022/6/14.
 * <p>
 * Author     : 15950526365
 * <p>
 * Description: 收藏业务实现接口
 */
public interface CollectionService {

    boolean addCollection(Collect collect);

    boolean delCollection(String userId,String proId);

    boolean delCollectList(String userId, List<String> proIds);

    /**
     * @author : 98730
     * @date   : 2022/6/10
     * @param  : []
     * @return : java.util.List<com.kgc.scd.bean.CartItem>
     * @description : 查询收藏列表-带分页
     */
    PageSupport<CollectProducts> queryCartListByPage(Integer pageNo, Integer pageSize, String userId,Integer orderBy);

    //足迹的展示
    //List<Foots> selectFoots( Integer pageNo, Integer pageSize,String userId);

    PageSupport<Foots> selectFoots( Integer pageNo, Integer pageSize,String userId );

    //足迹满足30条需要删掉商品的id 才能进行添加
    void deleteProId(String userId,String prodId);

    void addProId(Foot foot);

    Foots queryProdByFood(String proId);

    List<Integer> queryFootByProId(String userId);


    //清除足迹
    boolean clearFoot(String userId);
    //清除收藏
    boolean clearCollection(String userId);

}
